API Docs

You can find the Swagger docs by setting the path to /swagger-ui in your Argo CD UI’s. E.g. http://localhost:8080/swagger-ui.

Authorization

You’ll need to authorize your API using a bearer token. To get a token:

  1. $ curl $ARGOCD_SERVER/api/v1/session -d $'{"username":"admin","password":"password"}'
  2. {"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE1Njc4MTIzODcsImlzcyI6ImFyZ29jZCIsIm5iZiI6MTU2NzgxMjM4Nywic3ViIjoiYWRtaW4ifQ.ejyTgFxLhuY9mOBtKhcnvobg3QZXJ4_RusN_KIdVwao"}

Then pass using the HTTP Authorization header, prefixing with Bearer:

  1. $ curl $ARGOCD_SERVER/api/v1/applications -H "Authorization: Bearer $ARGOCD_TOKEN"
  2. {"metadata":{"selfLink":"/apis/argoproj.io/v1alpha1/namespaces/argocd/applications","resourceVersion":"37755"},"items":...}